package edu.odu.cs.sstore.client;

import java.util.Locale;

import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.view.RedirectView;

@Controller
public class DefaultController {

	@RequestMapping(value="/")
	public RedirectView defaultEntrance(Locale locale, Model model) {
		
		// TODO - redirect according to the logged in user's role
		RedirectView view = new RedirectView();
		view.setUrl("student");
		return view;
	}
	
}
